CFLAGS=`pkg-config --cflags glib-2.0` -Wall -g
BIN=exDNS
SRC=$(BIN).c
OBJ=$(BIN).o

all: log.o ping.o exDNS.o
	gcc ${CFLAGS} -lglib-2.0 -lpthread log.o ping.o exDNS.o -o ${BIN}
exDNS.o:
	gcc ${CFLAGS} -c ${SRC} -o exDNS.o
ping.o:
	gcc -Wall -c ping.c -o ping.o
log.o:
	gcc -Wall -c log.c -o log.o
clean:
	rm -rf ${BIN} *.o

